<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>EPrice ~ Ventas ultimos 12 Meses</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="0"
	cellspacing="1" class="tabla">
	<tr>
		<td width="33%" align="center" class="encabezadoTabla font_general">
			<bean:message key="CreatePriceRequest.MainTable.Client" /> - <bean:message key="CreatePriceRequest.MainTable.Product" />
		</td>
		<td width="33%" align="center" class="encabezadoTabla font_general">
			<bean:message key="CreatePriceRequest.MainTable.Client" /> - <bean:message key="CreatePriceRequest.MainTable.Products" />
		</td>
		<td width="34%" align="center" class="encabezadoTabla font_general"><bean:message key="CreatePriceRequest.MainTable.Group" /> - <bean:message key="CreatePriceRequest.MainTable.Products" /></td>
	</tr>
	<tr>
		<td valign="top" class="par">
		<table width="98%" border="0" align="center" cellpadding="0"
			cellspacing="1" class="tabla">
			<tr>
				<td width="30%" align="center" class="font_general impar">
					<strong><bean:message key="CreatePriceRequest.MainTable.Month" /></strong></td>
				<td width="20%" align="center" class="font_general impar">
					<strong><bean:message key="CreatePriceRequest.MainTable.Ton" /></strong>
				</td>
				<td width="50%" align="center" class="font_general impar">
					<strong> <%=request.getParameter("str_moneda") %> </strong>
				</td>
			</tr>
			<logic:present name="arrL_ventasClienteProducto">
				<logic:iterate id="clienteProd" name="arrL_ventasClienteProducto" indexId="int_i">
					<tr class="font_general par">
						<td align="center">
							<logic:notEqual name="int_i" value="12">
								<bean:write name="clienteProd" property="str_mes" /> 
								<bean:write name="clienteProd" property="int_anio" />
							</logic:notEqual>
							<logic:equal name="int_i" value="12">
								Promedio
							</logic:equal>
						</td>
						
						<td align="right"><bean:write name="clienteProd" property="str_toneladas" />&nbsp;</td>
						<td align="right"><bean:write name="clienteProd" property="str_venta" />&nbsp;</td>
					</tr>
				</logic:iterate>
			</logic:present>
		</table>
		</td>
		<td valign="top" class="par">
		<table width="98%" border="0" align="center" cellpadding="0"
			cellspacing="1" class="tabla">
			<tr>
				<td width="30%" align="center" class="font_general impar">
					<strong><bean:message key="CreatePriceRequest.MainTable.Month" /></strong>
				</td>
				<td width="20%" align="center" class="font_general impar">
					<strong><bean:message key="CreatePriceRequest.MainTable.Ton" /></strong>
				</td>
				<td width="50%" align="center" class="font_general impar">
					<strong><%=request.getParameter("str_moneda") %></strong>
				</td>
			</tr>
			<logic:present name="arrL_ventasClienteProductos">
				<logic:iterate id="clienteProds" name="arrL_ventasClienteProductos" indexId="int_i">
					<tr class="font_general par">
						<td align="center">
							
							<logic:notEqual name="int_i" value="12">
								<bean:write name="clienteProds" property="str_mes" />
								<bean:write name="clienteProds" property="int_anio" />
							</logic:notEqual>
							<logic:equal name="int_i" value="12">
								Promedio
							</logic:equal>
							
						</td>
						<td align="right"><bean:write name="clienteProds" property="str_toneladas" />&nbsp;</td>
						<td align="right"><bean:write name="clienteProds" property="str_venta" />&nbsp;</td>
					</tr>
				</logic:iterate>
			</logic:present>
		</table>
		</td>
		<td valign="top" class="par">
		<table width="98%" border="0" align="center" cellpadding="0"
			cellspacing="1" class="tabla">
			<tr>
				<td width="30%" align="center" class="font_general impar"><strong><bean:message key="CreatePriceRequest.MainTable.Month" /></strong></td>
				<td width="20%" align="center" class="font_general impar"><strong><bean:message key="CreatePriceRequest.MainTable.Ton" /></strong></td>
				<td width="50%" align="center" class="font_general impar"><strong><%=request.getParameter("str_moneda") %></strong></td>
			</tr>
			<logic:present name="arrL_ventasGrupoProductos">
				<logic:iterate id="grupoProds" name="arrL_ventasGrupoProductos" indexId="int_i">
					<tr class="font_general par">
						<td align="center"> 
							<logic:notEqual name="int_i" value="12">
								<bean:write name="grupoProds" property="str_mes" />
								<bean:write name="grupoProds" property="int_anio" />
							</logic:notEqual>
							<logic:equal name="int_i" value="12">Promedio</logic:equal>		
						</td>
						<td align="right"><bean:write name="grupoProds" property="str_toneladas" />&nbsp;</td>
						<td align="right"><bean:write name="grupoProds" property="str_venta" />&nbsp;</td>
					</tr>
				</logic:iterate>
			</logic:present>
		</table>
		</td>
	</tr>
</table>
</body>
</html>